﻿<UserControl
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:Controls="clr-namespace:WindowsPhoneToolbox.Controls" 
            x:Name="AppsEmulator" Focusable="True"
			 x:Class="WindowsPhoneToolbox.Controls.AppEmulatorControl" 
			 mc:Ignorable="d" 
			 d:DesignHeight="200" d:DesignWidth="300">
	<UserControl.Resources>
		<Style TargetType="ListBox" x:Key="strechedItemStyle">
			<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		</Style>
	</UserControl.Resources>
	<Grid>
		<Expander x:Name="expAppIns" Grid.Row="0">
			<Expander.Header>
				<TextBlock x:Name="TitleExp" Text="Applications" FontWeight="Bold" FontSize="12" />
			</Expander.Header>
			<Expander.Content>
				<StackPanel>
					<TextBlock x:Name="NoteList" Foreground="Red" TextWrapping="Wrap" TextAlignment="Justify" FontSize="10" />
					<ListBox x:Name="LstAppInst" Background="{x:Null}" BorderBrush="{x:Null}" Style="{StaticResource strechedItemStyle}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" IsTextSearchEnabled="False" Focusable="False">
						<ListBox.ItemTemplate>
							<DataTemplate>
								<Controls:AppPhoneControl IsAppCore="{Binding IsCoreApp}" AliasName="{Binding AliasName}"  AppName="{Binding ProductName}" AppGuid="{Binding ProductId}" ActionCommand="AppPhoneControlActionCommand" Margin="0" />
							</DataTemplate>
						</ListBox.ItemTemplate>
					</ListBox>
				</StackPanel>
			</Expander.Content>
		</Expander>
	</Grid>
</UserControl>
